<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:s="http://jboss.com/products/seam/taglib"
	xmlns:rich="http://richfaces.org/rich"
	xmlns:a4j="http://richfaces.org/a4j" xmlns:Jawr="http://jawr.net/tags"
	xmlns:ctg="http://www.crotouristguide.com/taglib">

<ui:composition template="/templates/layout/columns_1.xhtml">
	<ui:define name="column1">
		<h1>
			<h:outputText value="#{messages['title.today.rec']}"/>
			<s:div styleClass="subtitle">
				<h:outputText value="#{messages['subtitle.today.rec']} "/> 		
			</s:div> 
			
		</h1>
		
		<rich:dataTable value="#{recMjesta}" var="m" width="100%" rows="15" cellspacing="0" cellpadding="0" styleClass="list" columnClasses="rich-separator">
			<h:column>
				<h2><h:outputLink
					value="#{application.contextPath}/guides/mjesta/mjesto.seam">
					<f:param name="idMjesta" value="#{m.idMjesta}"/>
					<f:param name="l" value="#{currentLang}"/>
					<f:param name="title" value="#{titleAction.getUrlTitle(mjesto)}"/>
					<h:outputText value="#{m.naziv}" />
				</h:outputLink></h2>
				<s:div styleClass="leftm">
					<h:outputLink
						value="#{application.contextPath}/guides/mjesta/mjesto.seam">
						<f:param name="idMjesta" value="#{m.idMjesta}"/>
						<f:param name="l" value="#{currentLang}" />
						<f:param name="title" value="#{titleAction.getUrlTitle(mjesto)}"/>
						<img alt="#{messages['label.image.alt']} #{m.naziv}" width="240" height="160"
							src="#{slikaAction.getPocSlikaPath(m,'m')}">
						</img>							
					</h:outputLink>
					<ctg:nbsp/>
				</s:div>
				<s:div >
							<h:outputText styleClass="text11" value="#{stringUtil.substring(m.getOpis(currentLang).getOpis(),700)}..."
								escape="false" />
					<p><h:outputLink 
						value="#{application.contextPath}/guides/mjesta/mjesto.seam">
						<f:param name="idMjesta" value="#{m.idMjesta}"/>
						<f:param name="l" value="#{currentLang}"/>
						<f:param name="title" value="#{titleAction.getUrlTitle(mjesto)}"/>
						<h:outputText value="#{messages['label.link.more']}" />
					</h:outputLink></p>
				</s:div>
				<br class="clearb"/>
			</h:column>
		</rich:dataTable>

	</ui:define>
	<ui:define name="column2">
		<s:cache key="rec_mjesta_column2_#{currentLang}" region="pageFragments">
			
		</s:cache>
	</ui:define>
</ui:composition>

</html>